package com.itheim.chinamobileai.tool;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.ai.tool.annotation.ToolParam;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class CourseQuery {
    @ToolParam(required = false, description = "预算范围，1-60元以下，2-100元以下，3-200元以下 ")
    private Integer edu;
    @ToolParam(required = false, description = "流量 ")
    private Integer traffic;
    @ToolParam(required = false, description = "通话时长 ")
    private Integer call;
    @ToolParam(required = false, description = "附加服务 ")
    private Integer services;
    @ToolParam(required = false,description = "排序，可以是多个")
    private List<Srot> srot;
    @Data
    public static class Srot{
        @ToolParam(required = false,description = "排序字段，可以按照price、duration")
        private String field;
        @ToolParam(required = false,description = "是否升序排序。true-升序，false-降序")
        private Boolean isAsc;
    }
}
